<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
 <c:forEach var="favorite" items="${favorites}" >
 
	<section class="aui-card-content" style="margin-bottom:0px" >
	  <div class="aui-card-media">
	    
	    <div class="aui-card-media-item" onclick="window.open('/apollo/wechat/shop/product?cargoId=${favorite.id }','_self')"> 
	    	 <c:if test="${favorite.cargo.fileId==null }">
				<img src="" style="height:129px;width:129px;text-align:center" alt="暂无图片">
			</c:if>	
			<c:if test="${favorite.cargo.fileId!=null }">
				<img name="pictureLoad" data-url="${tfile:getImageUrl(favorite.cargo.fileId)}" style="height:129px;width:129px"  alt="">
			</c:if>
	    </div>
	    <div class="aui-card-media-inner">
	      <div class="aui-list-product-item-text" onclick="window.open('/apollo/wechat/shop/product?cargoId=${favorite.cargo.cargoId }','_self')">
	        <h2>${favorite.cargo.cargoName }</h2>
	        <div> 
	         	<c:if test="${favorite.cargo.minSale==favorite.cargo.maxSale}">
					<span class="aui-list-product-item-price"> <em>¥</em> ${favorite.cargo.minSale}</span> 				
				</c:if>
				<c:if test="${favorite.cargo.minSale!=favorite.cargo.maxSale}">
					<span class="aui-list-product-item-price"> <em>¥</em> ${favorite.cargo.minSale}~~${favorite.cargo.maxSale} </span> 
				</c:if>
	        </div>
	        <div class="aui-list-product-mes-box">
		        <div><span class="aui-list-product-item-del-text">库存：${favorite.cargo.stockNum } </span></div>
	        </div>
	        <div class="aui-list-product-mes-box">        
	         	<div class="aui-list-product-item-del-text">销量：${favorite.cargo.salesVolume}</div>
	       	</div>
	      </div>
	       <i onclick="queryCollocations('${favorite.cargo.cargoId}','${favorite.cargo.shopId }')" data-ydui-actionsheet="{target:'#actionSheet',closeElement:'#cancel'}" style="height:30px;width:30px; float:right;margin-top:10px;margin-bottom:5px;background: url(/apollo/images/add.png)center/100% 100%;display: block;"></i>
	        
	    </div>
	    
	  </div>
	</section>

<!-- 卡片模块 end -->
</c:forEach>
      
